<!--
  This file is a part of the open-eBackup project.
  This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
  If a copy of the MPL was not distributed with this file, You can obtain one at
  http://mozilla.org/MPL/2.0/.
  
  Copyright (c) [2024] Huawei Technologies Co.,Ltd.
  
  THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
  EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
  MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
  -->

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="zh-cn" xml:lang="zh-cn">
 <head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="DC.Type" content="topic">
  <meta name="DC.Title" content="恢复卷">
  <meta name="product" content="">
  <meta name="DC.Relation" scheme="URI" content="volume_0041.html">
  <meta name="prodname" content="">
  <meta name="version" content="">
  <meta name="brand" content="30-OceanProtect 备份一体机 1.5.0-1.6.0 帮助中心">
  <meta name="DC.Publisher" content="20240320">
  <meta name="prodname" content="csbs">
  <meta name="documenttype" content="usermanual">
  <meta name="DC.Format" content="XHTML">
  <meta name="DC.Identifier" content="volume_0044">
  <meta name="DC.Language" content="zh-cn">
  <link rel="stylesheet" type="text/css" href="public_sys-resources/commonltr.css">
  <title>恢复卷</title>
 </head>
 <body style="clear:both; padding-left:10px; padding-top:5px; padding-right:5px; padding-bottom:5px">
  <a name="volume_0044"></a><a name="volume_0044"></a>
  <h1 class="topictitle1">恢复卷</h1>
  <div>
   <p>当需要对已备份的卷进行恢复时，可以参考本节恢复卷至原位置或新位置。</p>
   <div class="section">
    <h4 class="sectiontitle">前提条件</h4>
    <p>恢复前请确保恢复目标位置的数据目录剩余空间大于恢复副本缩减前大小，否则恢复将失败。</p>
   </div>
   <div class="section" id="volume_0044__section205672348712">
    <h4 class="sectiontitle">注意事项</h4>
    <p id="volume_0044__p1521143817711">恢复目标主机的文件系统版本低于原主机的文件系统版本时，若原卷使用了原主机的高版本文件系统特性，目标主机上恢复的卷将不可用。</p>
   </div>
   <div class="section">
    <h4 class="sectiontitle">操作步骤</h4>
    <ol>
     <li><span>选择<span class="uicontrol" id="volume_0044__zh-cn_topic_0000001839142377_uicontrol2728131538">“<span id="volume_0044__zh-cn_topic_0000001839142377_text27283316312">数据利用</span> &gt; <span id="volume_0044__zh-cn_topic_0000001839142377_text157282318317">副本数据</span> &gt; 文件系统 &gt; <span id="volume_0044__zh-cn_topic_0000001839142377_text198473585287">卷</span>”</span>。</span></li>
     <li><span>您可以以卷资源维度或以副本维度查找副本，本节以资源维度为例进行说明。</span><p></p><p>在<span class="uicontrol">“<span>资源</span>”</span>页签，根据资源名称查找到需要恢复的资源，并单击资源名称。</p> <p></p></li>
     <li><span>单击<span class="uicontrol">“<span>副本数据</span>”</span>，依次选择年、月、天找到副本。</span><p></p><p>当时间下方显示<span><img src="zh-cn_image_0000001798564508.png"></span>，即表示该月、该天存在副本。</p> <p></p></li>
     <li><span>在副本所在行，单击<span class="uicontrol">“<span>更多</span> &gt; <span>恢复</span>”</span>。</span><p></p><p>相关参数说明如<a href="#volume_0044__table93951625101715">表1</a>所示。</p>
      <div class="tablenoborder">
       <a name="volume_0044__table93951625101715"></a><a name="table93951625101715"></a>
       <table cellpadding="4" cellspacing="0" summary="" id="volume_0044__table93951625101715" frame="border" border="1" rules="all">
        <caption>
         <b>表1 </b>恢复卷参数说明
        </caption>
        <colgroup>
         <col style="width:13.170000000000002%">
         <col style="width:15.7%">
         <col style="width:71.13000000000001%">
        </colgroup>
        <thead align="left">
         <tr>
          <th align="left" class="cellrowborder" colspan="2" valign="top" id="mcps1.3.4.2.4.2.2.2.4.1.1"><p>参数</p></th>
          <th align="left" class="cellrowborder" valign="top" id="mcps1.3.4.2.4.2.2.2.4.1.2"><p>说明</p></th>
         </tr>
        </thead>
        <tbody>
         <tr>
          <td class="cellrowborder" colspan="2" valign="top" headers="mcps1.3.4.2.4.2.2.2.4.1.1 "><p>裸机恢复</p></td>
          <td class="cellrowborder" valign="top" headers="mcps1.3.4.2.4.2.2.2.4.1.2 "><p>默认关闭，开启后将会恢复整个操作系统。</p>
           <div class="note">
            <span class="notetitle"> 说明： </span>
            <div class="notebody">
             <p>未开启操作系统备份的副本不支持开启裸机恢复。</p>
            </div>
           </div></td>
         </tr>
         <tr>
          <td class="cellrowborder" colspan="2" valign="top" headers="mcps1.3.4.2.4.2.2.2.4.1.1 "><p>恢复非系统卷</p></td>
          <td class="cellrowborder" valign="top" headers="mcps1.3.4.2.4.2.2.2.4.1.2 "><p>开启裸机恢复后展示该参数，默认关闭，开启后将会恢复卷类型为非系统的卷。</p></td>
         </tr>
         <tr>
          <td class="cellrowborder" colspan="2" valign="top" headers="mcps1.3.4.2.4.2.2.2.4.1.1 "><p>恢复成功后重启系统</p></td>
          <td class="cellrowborder" valign="top" headers="mcps1.3.4.2.4.2.2.2.4.1.2 "><p>开启裸机恢复后展示该参数，默认关闭，开启后裸机恢复成功后将会重启系统。</p></td>
         </tr>
         <tr>
          <td class="cellrowborder" colspan="2" valign="top" headers="mcps1.3.4.2.4.2.2.2.4.1.1 "><p>恢复类型</p>
           <div class="note">
            <span class="notetitle"> 说明： </span>
            <div class="notebody">
             <p>仅Windows OS存在此参数。</p>
            </div>
           </div></td>
          <td class="cellrowborder" valign="top" headers="mcps1.3.4.2.4.2.2.2.4.1.2 "><p>选择备份类型：卷、裸机。</p>
           <div class="note">
            <span class="notetitle"> 说明： </span>
            <div class="notebody">
             <ul>
              <li>在裸机恢复前，请参见<a href="volume_0079.html">以WinPE方式启动Windows OS，启动后配置IP地址</a>启动目标主机。</li>
              <li>在裸机恢复完成后，如果部分磁盘处于Foreign状态，请参见<a href="volume_0080.html">Windows OS恢复完成后部分磁盘处于Foreign状态</a>恢复磁盘的状态。</li>
             </ul>
            </div>
           </div></td>
         </tr>
         <tr>
          <td class="cellrowborder" colspan="2" valign="top" headers="mcps1.3.4.2.4.2.2.2.4.1.1 "><p>选择需要恢复的卷</p></td>
          <td class="cellrowborder" valign="top" headers="mcps1.3.4.2.4.2.2.2.4.1.2 "><p>选择待恢复的卷，可通过搜索卷名称查找需要恢复的卷。</p>
           <div class="note">
            <span class="notetitle"> 说明： </span>
            <div class="notebody">
             <p>开启裸机恢复，则无需选择需要恢复的卷。</p>
            </div>
           </div></td>
         </tr>
         <tr>
          <td class="cellrowborder" rowspan="2" valign="top" width="13.170000000000002%" headers="mcps1.3.4.2.4.2.2.2.4.1.1 "><p>恢复配置</p> <p></p></td>
          <td class="cellrowborder" valign="top" width="15.7%" headers="mcps1.3.4.2.4.2.2.2.4.1.1 "><p>恢复至</p></td>
          <td class="cellrowborder" valign="top" width="71.13000000000001%" headers="mcps1.3.4.2.4.2.2.2.4.1.2 "><p>卷的恢复位置。</p>
           <ul>
            <li>原位置：恢复至原机原位置。</li>
            <li>新位置：恢复至新位置，需要指定恢复的目标主机。
             <div class="note">
              <span class="notetitle"> 说明： </span>
              <div class="notebody">
               <p><span style="color:#282B33;">使用LiveCD启动原主机时，恢复副本数据将无法选择原位置恢复，若需要使用原主机配置，请在新位置恢复中选择原主机作为目标主机进行恢复。</span></p>
              </div>
             </div></li>
           </ul></td>
         </tr>
         <tr>
          <td class="cellrowborder" valign="top" headers="mcps1.3.4.2.4.2.2.2.4.1.1 "><p>目标主机</p></td>
          <td class="cellrowborder" valign="top" headers="mcps1.3.4.2.4.2.2.2.4.1.1 "><p>仅在新位置恢复时需要选择恢复的目标主机。</p> <p>可通过搜索主机名称或主机IP地址选择相应主机。</p></td>
         </tr>
         <tr>
          <td class="cellrowborder" rowspan="3" valign="top" width="13.170000000000002%" headers="mcps1.3.4.2.4.2.2.2.4.1.1 "><p>高级配置</p></td>
          <td class="cellrowborder" valign="top" width="15.7%" headers="mcps1.3.4.2.4.2.2.2.4.1.1 "><p>恢复前执行脚本</p></td>
          <td class="cellrowborder" rowspan="3" valign="top" width="71.13000000000001%" headers="mcps1.3.4.2.4.2.2.2.4.1.2 "><p id="volume_0044__p16797181010379">您可以根据实际需求，在备份任务执行前、执行成功后、执行失败后，执行自定义脚本。</p> <p id="volume_0044__p1742941713447">请将执行脚本放在DataBackup/ProtectClient/ProtectClient-E/sbin/thirdparty目录下，例如：/opt/DataBackup/ProtectClient/ProtectClient-E/sbin/thirdparty/执行脚本的相对路径。</p> <p id="volume_0044__p525748151117"><span style="color:#282B33;">可根据实际情况，在恢复任务执行前、或恢复任务执行成功后、或恢复任务执行失败后，执行用户自定义的脚本，脚本类型为sh。并将脚本放置在DataBackup/ProtectClient/ProtectClient-E/sbin/thirdparty目录下。</span></p>
           <div class="note">
            <span class="notetitle"> 说明： </span>
            <div class="notebody">
             <p id="volume_0044__files-0044_Files-0015_postgresql-0045_zh-cn_topic_0000001264099602_p196461512103113">当配置了<span class="uicontrol" id="volume_0044__files-0044_Files-0015_postgresql-0045_zh-cn_topic_0000001264099602_uicontrol180112781919">“<span id="volume_0044__files-0044_Files-0015_postgresql-0045_zh-cn_topic_0000001264099602_text10711756153116">恢复成功执行脚本</span>”</span>时，即使该脚本执行失败，<span id="volume_0044__files-0044_text10105204810495">本产品</span>上也会显示恢复任务的状态为<span class="uicontrol" id="volume_0044__files-0044_Files-0015_postgresql-0045_zh-cn_topic_0000001264099602_uicontrol488919204209">“<span id="volume_0044__files-0044_Files-0015_postgresql-0045_zh-cn_topic_0000001264099602_text186291135132417">成功</span>”</span>。请您留意任务详情中是否有后置脚本执行失败的相关提示，如有请及时修正脚本。</p>
            </div>
           </div></td>
         </tr>
         <tr>
          <td class="cellrowborder" valign="top" headers="mcps1.3.4.2.4.2.2.2.4.1.1 "><p>恢复成功执行脚本</p></td>
         </tr>
         <tr>
          <td class="cellrowborder" valign="top" headers="mcps1.3.4.2.4.2.2.2.4.1.1 "><p>恢复失败执行脚本</p></td>
         </tr>
        </tbody>
       </table>
      </div> <p></p></li>
     <li><span>单击<span class="uicontrol">“确定”</span>。</span></li>
    </ol>
   </div>
  </div>
  <div>
   <div class="familylinks">
    <div class="parentlink">
     <strong>父主题：</strong> <a href="volume_0041.html">恢复</a>
    </div>
   </div>
  </div>
 </body>
</html>